home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Framewrk / FWViews / FWAEView.cpp < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.9 KB  |  57 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWAEView.cpp
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9. // We separate the archiving functions into their own translation units in order to
  10. // enable dead-stripping.
  11.  
  12. #include "FWFrameW.hpp"
  13.  
  14. #ifndef FWEDVIEW_H
  15. #include "FWEdView.h"
  16. #endif
  17.  
  18. //========================================================================================
  19. // File scope definitions
  20. //========================================================================================
  21.  
  22. #ifdef FW_BUILD_MAC
  23. #pragma segment fwgadgts
  24. #endif
  25.  
  26. //========================================================================================
  27. // CLASS FW_CEditView
  28. //========================================================================================
  29.  
  30. const FW_ClassTypeConstant FW_LEditView = FW_TYPE_CONSTANT('e','d','v','w');
  31. FW_REGISTER_ARCHIVABLE_CLASS(FW_LEditView, FW_CEditView, FW_CEditView::Create, FW_CView::Read, FW_CEditView::Destroy, FW_CView::Write)
  32.  
  33. //----------------------------------------------------------------------------------------
  34. // FW_CEditView::Create
  35. //----------------------------------------------------------------------------------------
  36.  
  37. void* FW_CEditView::Create(FW_CReadableStream& stream, FW_ClassTypeConstant type)
  38. {
  39. FW_UNUSED(stream);
  40. FW_UNUSED(type);
  41.     FW_SOMEnvironment ev;
  42.     FW_CEditView* view = FW_NEW(FW_CEditView, (ev));
  43.     return view;
  44. }
  45.  
  46. //----------------------------------------------------------------------------------------
  47. //    FW_CEditView::Destroy
  48. //----------------------------------------------------------------------------------------
  49.  
  50. void FW_CEditView::Destroy(void* object, FW_ClassTypeConstant type)
  51. {
  52. FW_UNUSED(type);
  53.     FW_CEditView* self = (FW_CEditView*) object;
  54.     delete self;
  55. }
  56.  
  57.